package br.com.verde.exemploteca.patternmatching

object Switch {
  def checkPrime(number:Int) = number match {
	case 1 => true
	case 2 => true
	case 3 => true
	case 5 => true
	case 7 => true
	case _ => false
 }

  def main(args : Array[String]) : Unit = {
	if (checkPrime(2)) println("It is prime") else println("It isn't prime")
  }
}
